import { Entity, Column, PrimaryGeneratedColumn} from 'typeorm';
// 注释见tips第5条
@Entity()
export class User {
  @PrimaryGeneratedColumn()
  id: string;

  @Column()
  name: string;

  @Column({select: false})
  password: string;

  @Column()
  email: string
}